package com.zxy.supplier_system.server.repository

import com.zxy.supplier_system.server.entity.GoodsUnit
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query

interface GoodsUnitRepository:JpaRepository<GoodsUnit,Long> {

    @Query("select distinct name from GoodsUnit")
    fun getAllNames():List<String>

}